﻿//====================================================================
// Create by Daniel
// Copyright: YunStudio Inc.
// file： YCCategory.cs
// project ：YunCMS
// Build time：2012-09-09
// modify:
// description:
// ===================================================================
using System;
namespace YunCMS.Model
{
	/// <summary>
	///YCCategory Model
	/// </summary>
	[Serializable]
	public class YCCategory
	{
        #region
        private int _id;
        private int _parentid;
        private string _title = String.Empty;
        private string _moduletype = String.Empty;
        private bool? _active;
        private string _target = String.Empty;
        private string _description = String.Empty;
        private string _content = String.Empty;
        private int? _nodelevel;
        private int? _ordernumber;
        private int? _displaytype;
        private int? _access;
        private string _imageurl = String.Empty;
        private string _keywords = String.Empty;
        private string _folder = String.Empty;
        private string _filepath = String.Empty;
        private string _outerlink = String.Empty;
        private string _nodepath = String.Empty;
        #endregion

        #region
        ///<summary>
        ///Constructor
        ///</summary>
        public YCCategory()
        {
        }
        ///<summary>
        ///Constructor
        ///</summary>
        public YCCategory
        (
            int id,
            int parentid,
            string title,
            string moduletype,
            bool? active,
            string target,
            string description,
            string content,
            int? nodelevel,
            int? ordernumber,
            int? displaytype,
            int? access,
            string imageurl,
            string keywords,
            string folder,
            string filepath,
            string outerlink,
            string nodepath
        )
        {
            _id = id;
            _parentid = parentid;
            _title = title;
            _moduletype = moduletype;
            _active = active;
            _target = target;
            _description = description;
            _content = content;
            _nodelevel = nodelevel;
            _ordernumber = ordernumber;
            _displaytype = displaytype;
            _access = access;
            _imageurl = imageurl;
            _keywords = keywords;
            _folder = folder;
            _filepath = filepath;
            _outerlink = outerlink;
            _nodepath = nodepath;

        }
        #endregion

        #region

        ///<summary>
        ///ID
        ///</summary>
        public int ID
        {
            get { return _id; }
            set { _id = value; }
        }

        ///<summary>
        ///ID of parent category
        ///</summary>
        public int ParentID
        {
            get { return _parentid; }
            set { _parentid = value; }
        }

        ///<summary>
        ///Title
        ///</summary>
        public string Title
        {
            get { return _title; }
            set { _title = value; }
        }

        ///<summary>
        ///Module Type
        ///</summary>
        public string ModuleType
        {
            get { return _moduletype; }
            set { _moduletype = value; }
        }

        ///<summary>
        ///Active
        ///</summary>
        public bool? Active
        {
            get { return _active; }
            set { _active = value; }
        }

        ///<summary>
        ///Link target, possible value "_blank", "_self",...
        ///</summary>
        public string Target
        {
            get { return _target; }
            set { _target = value; }
        }

        ///<summary>
        ///Description
        ///</summary>
        public string Description
        {
            get { return _description; }
            set { _description = value; }
        }

        ///<summary>
        ///Summary content
        ///</summary>
        public string Content
        {
            get { return _content; }
            set { _content = value; }
        }

        ///<summary>
        ///Hierachy level of category
        ///</summary>
        public int? NodeLevel
        {
            get { return _nodelevel; }
            set { _nodelevel = value; }
        }

        ///<summary>
        ///OrderNumber
        ///</summary>
        public int? OrderNumber
        {
            get { return _ordernumber; }
            set { _ordernumber = value; }
        }

        ///<summary>
        ///Display in nav or footer or none or ...
        ///</summary>
        public int? DisplayType
        {
            get { return _displaytype; }
            set { _displaytype = value; }
        }

        ///<summary>
        ///Access
        ///</summary>
        public int? Access
        {
            get { return _access; }
            set { _access = value; }
        }

        ///<summary>
        ///Image Url
        ///</summary>
        public string ImageUrl
        {
            get { return _imageurl; }
            set { _imageurl = value; }
        }

        ///<summary>
        ///Split with ','
        ///</summary>
        public string Keywords
        {
            get { return _keywords; }
            set { _keywords = value; }
        }

        ///<summary>
        ///Folder
        ///</summary>
        public string Folder
        {
            get { return _folder; }
            set { _folder = value; }
        }

        ///<summary>
        ///FilePath
        ///</summary>
        public string FilePath
        {
            get { return _filepath; }
            set { _filepath = value; }
        }

        ///<summary>
        ///OuterLink 
        ///</summary>
        public string OuterLink
        {
            get { return _outerlink; }
            set { _outerlink = value; }
        }

        ///<summary>
        ///NodePath
        ///</summary>
        public string NodePath
        {
            get { return _nodepath; }
            set { _nodepath = value; }
        }

        #endregion	
	}
}



